Master List | P


Included below is a list of every JavaScript in our archives. If you are unable to find what you are looking for, or need assistance in modifying one of the scripts to suit your needs, or just would like to help others out, please please visit our JavaScript Forum.

Update Archives:
1999 - Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2000 - Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2001 - Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

You can also use your browser's 'Find in Page'
feature to look for keywords on this page!

All | # | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Title: Page Extension
Details: 1.29 KB * Uploaded December 23 1999
Description: Displays a message based on the extension (like .html) of the web page. And, it is a breeze to add more file types to the script.

[ Get Source Code ]


Title: Page Scroller
Contributor: Brian Gosselin (bgaudiodr@aol.com)
Contributor URL: http://www.bgaudiodr.iwarp.com
Details: 2.21 KB * Uploaded July 18 2000
Description: Placing the cursor on the page's up or down arrows located in the bottom right corner of the browser window will automatically scrolls the page. Cool!

[ Get Source Code ]


Title: Page Up For
Details: 1.96 KB * Uploaded July 1 1999
Description: JavaScript can even display how long your web page has been online. Just enter the date, the script does the calculations, and prints out the time. It has a very nice readout and looks very professional!

[ Get Source Code ]


Title: Page Variable
Details: 0.61 KB * Uploaded April 16 1998
Description: Not exactly the most used script, but this one allows you to reference the page name in a variable. Instead of yourdomain.com/index.html, you can use this script to create a variable that stores index.html for your use! You can use it with alerts, document.write, etc. Take a look!

[ Get Source Code ]


Title: Page Viewed Date
Details: 0.60 KB * Uploaded August 18 1997
Description: I think it's always interesting to see some information about the page itself. This JavaScript will write out when the page was viewed, according to the visitor's clock.

[ Get Source Code ]


Title: Parabola Grapher
Contributor: Andreas Verhoeven (ave2233@yahoo.com)
Details: 3.10 KB * Uploaded April 6 2000
Description: Enter a parabolic equation, like 5x^2 + 18x + 27 and this calculator will determine all the vital information about the graph. And, a rough graph of the curve is available. I wish I know about JavaScript back in high school....

[ Get Source Code ]


Title: Particle Field
Contributor: Joe Lard (darg36@home.com)
Contributor URL: http://members.home.net/darg36
Details: 6.50 KB * Uploaded December 14 2000
Description: Illustrates movement of stars (or snow) depending on the direction of the mouse. Awesome!

[ Get Source Code ]


Title: Pass Menu (in frames)
Contributor: Ronnie T. Moore, Editor
Contributor URL: JavaScript Source Code 2002
Details: 1.42 KB * Uploaded March 27 2000
Description: After the user selects an option in the pulldown menu in the left frame, JavaScript can pass that option's value into a text box in the right frame when the button is clicked. Cool!

[ Get Source Code ]


Title: Pass Textbox (in frames)
Contributor: Ronnie T. Moore, Editor
Contributor URL: JavaScript Source Code 2002
Details: 1.38 KB * Uploaded March 24 2000
Description: Copies the text in a box in the left frame into a box in the right frame when the button is clicked. A clever way to pass values in frames.

[ Get Source Code ]


Title: Passing Values
Details: 1.23 KB * Uploaded November 11 1999
Description: Here is a clever way of 'unwrapping' the contents of a form when passed from one page to the next. This capability would be useful in many situations, such as passing the contents of a form to another page, retaining information about the current page for the rest of their visit, etc. Great!

[ Get Source Code ]


Title: Password Generator
Contributor: ataxx@visto.com (ataxx@visto.com)
Details: 3.49 KB * Uploaded October 27 2000
Description: Generate a random password with the ability to include special characters and password restrictions.

[ Get Source Code ]


Title: Password Pro Pass. Protec.
Contributor: Lefteris Haritou (lef@writeme.com)
Contributor URL: http://www.geocities.com/~lef
Details: 2.55 KB * Uploaded October 26 1997
Description: This script uses a different approach to Password Protection. It still uses the password as the actual page, but it uses an encryption method that encrypts and checks the password. So if you fail to enter it correct after 3 times you go to a specific page (specified by the webmaster) and you don't get the annoying 404 page not found message as in other scripts. The password is password

[ Get Source Code ]


Title: Preload Page
Contributor: Gilbert Davis
Details: 1.20 KB * Uploaded September 28 2000
Description: Displays a loading message as the page, including images and sound elements, are loaded in the background. When the page finishes loading the screen is shown, similar to how Macromedia's Flash plugin works. Easy!

[ Get Source Code ]


Title: Password Prompt Pass. Protec.
Details: 0.58 KB * Uploaded August 13 1997
Description: If a visitor wants to go a password protected page, they must first enter the correct password on the page with this script. This script will just take you them to [password entered].html This is a very good script if JavaScript is enabled and as long as you have an index.html file in your directory. As an added bonus, it's only 8 lines! The password is the protected filename without the .html ending.

[ Get Source Code ]


Title: Password Verifier
Contributor: Carey Walker (carey.walker@citicorp.com)
Details: 1.13 KB * Uploaded April 18 1999
Description: Keep your visitors from submitting their form until their "password" and "re-enter password" fields match, for verification purposes. They get an error message telling them to re-enter the passwords if they do not match.

[ Get Source Code ]


Title: Peg
Contributor:Erik Gos (erik.gos@hiva.kuleuven.ac.be)
Details: 29.10 KB * Uploaded August 18 1998
Description: An interesting little JavaScript game where you try to leave only one peg by jumping one over another and removing the 'jumped' peg. Sound easy? See how well you can do!

[ Get Source Code ]


Title: Percent Calculator
Contributor: Tom Richardson Jr. (gooftroop@geocities.com)
Details: 1.57 KB * Uploaded February 26 1999
Description: Don't waste another minute dealing with percent problems. This script will solve both of these for you, just enter the values! What a time-saver!

[ Get Source Code ]


Title: Percent of Increase
Contributor: Joey Mornin (jmornin@gateway.net)
Details: 1.17 KB * Uploaded February 4 2000
Description: Enter two numbers and JavaScript will help you determine the percent of increase. This is a perfectly simple example of using a JavaScript return function. Check it out!

[ Get Source Code ]


Title: Periodic Table
Contributor:Matthew Hoesch (mdih@msn.com)
Details: 15.90 KB * Uploaded August 18 1998
Description: Besides a very organized Periodic Table, this script will tell you lots of information about any periodic element you click on. Very neat!

[ Get Source Code ]


Title: Phone Bill
Details: 2.04 KB * Uploaded July 3 1998
Description: Does it ever bother you how much a long-distance phone call is going to cost, after you hung up? With this script, all you have to do is enter the amount per minute, and any initial amount, then click start when the call begins and see the total charge at any time! Save time, money, and learn JavaScript all with this script! :-)

[ Get Source Code ]


Title: Phone Lookup
Details: 1.54 KB * Uploaded October 5 1999
Description: Allows the user to enter their area code and phone number and have the modem dialup phone number for their area displayed. If their area code matches an area code as defined in the script, the appropriate dialup number is displayed. For all other area codes, an error message is displayed. Only supports one dialup number per area code, though.

[ Get Source Code ]


Title: Phone Number Converter
Contributor: Kevin Steffler (ksteff@ionsys.com)
Contributor URL: http://web.ionsys.com/~ksteff
Details: 5.25 KB * Uploaded December 28 1998
Description: Have you ever wondered if your phone number has a memorable text equivalent, like 555-HELP? Just type it in and this script will generate all possible combinations, just pick your favorite one and tell the world how to reach you.

[ Get Source Code ]


Title: Photo Album
Contributor: Jennifer Stuart (jenniferstuart@yahoo.com)
Details: 7.22 KB * Uploaded August 14 2000
Description: Display your pictures in a JavaScript-powered photo album. The number of images, name of the album, and other details can be changed. On the individual page for each image, previous and next buttons allow the user to easily view the rest of the images. Great!

[ Get Source Code ]


Title: Picture Memory
Contributor: Kien Caoxuan (kcaoxuan@caoxuan.com)
Contributor URL: http://www.caoxuan.com
Details: 4.62 KB * Uploaded August 10 2000
Description: Take your time and study the underwater picture very carefully. When you are ready, start the memory test. The game will ask you where you saw the pieces. See if you can get all 15 right! Not as easy as it sounds!

[ Get Source Code ]


Title: Picture Puzzle
Contributor: Davey Erwin (daverwin@hotmail.com)
Contributor URL: http://daverwin.homepage.com
Details: 11.50 KB * Uploaded May 8 2000
Description: The classic mix-up puzzle that uses any image you want. Your image is 'cut' into puzzle pieces and left to be scrambled then solved by your visitors. (This script uses Dan Steinman's Dynapi code.)

[ Get Source Code ]


Title: Platform Page
Details: 0.53 KB * Uploaded May 21 1999
Description: Do you maintain a different version of your site for Windows and another for Mac users? Or, when allowing your visitor to download items from your site, would you like to automatically redirect them to the appropriate software download page for their computer? This script does it all, and it's short too!

[ Get Source Code ]


Title: Playoff Chart Maker
Contributor: Tom McComb (mrtuba@tampabay.rr.com)
Contributor URL: http://home.tampabay.rr.com/mrtuba
Details: 5.23 KB * Uploaded January 26 2000
Description: Enter the number of teams in your tournament and JavaScript will output the appropriate single-elimination playoff chart. Just print it out and fill it in to track your tournament. Great!

[ Get Source Code ]


Title: Plugin Page
Contributor:Mattias Jonsson (gt96mjn@blg.du.se)
Contributor URL: http://www.du.se/~gt96mjn
Details: 0.72 KB * Uploaded June 12 1998
Description: If you maintain separate pages, one plugin enhanced, the other not, here's a simple way to send your visitors to the right page automatically. Besides being a very short script (it loads fast) you can modify the code to look for any plugin you want. Give it a try!

[ Get Source Code ]


Title: Plugins Alert
Details: 0.91 KB * Uploaded August 23 1997
Description: JavaScript will count how many plugins are installed then make a remark based on that count to your visitors - totally written in JavaScript!

[ Get Source Code ]


Title: Plugins Table
Details: 2.31 KB * Uploaded August 23 1997
Description: JavaScript can create a table to display all the plugins displayed on your computer. Also tells if they are enabled, etc....

[ Get Source Code ]


Title: Pokemon
Contributor: Paul (Poke_Paul@hotmail.com)
Contributor URL: http://www.angelfire.com/ak3/MewHiddenLair
Details: 9.71 KB * Uploaded August 19 1999
Description: An interactive version of Pokemon which allows you to raise your very own Pikachu! Try it!

[ Get Source Code ]


Title: Pokemon Invaders
Contributor: Sam Dodge (nancied@mac.com)
Contributor URL: http://raichusscastle.hypermart.net
Details: 5.64 KB * Uploaded May 26 2000
Description: Try your luck as a pokemon protecting the world against an invading enemy squad.

[ Get Source Code ]


Title: Popup Page
Details: 0.81 KB * Uploaded July 23 1999
Description: JavaScript can open another window a specified number of seconds after the first page finishes loading. This popup page can function as an advertising window, some tips on navigating your site, what's new, and lots more. Nice!

[ Get Source Code ]


Title: Popup Picker
Contributor: Shawn A. Mann (dharmamann@hotmail.com)
Contributor URL: http://www.laughingshaman.com
Details: 2.14 KB * Uploaded October 25 2000
Description: Select an item from the list and the selected value is passed to the form field of the original window, and the pop-up closes automatically. Useful!

[ Get Source Code ]


Title: Portable Menu
Contributor: Randy Bennett (rbennett@thezone.net)
Contributor URL: http://home.thezone.net/~rbennett/utility/javahead.htm
Details: 1.69 KB * Uploaded June 4 1999
Description: On your site, it's often useful to have a navigation menu for visitors to help them get around on your site. This navigation menu, however, is different. As the visitor scrolls up and down your site, the menu moves up and down with them! It's a portable menu! (The only concern when adding this to your site is to make sure you move the regular content on your site over enough that the portable menu won't cover it) Great!

[ Get Source Code ]


Title: Paycheck Calculator
Contributor: Dan Scott (dscott@wirepower.com)
Contributor URL: http://www.wirepower.com
Details: 2.32 KB * Uploaded January 20 2000
Description: Entering your pay rate and the number of hours you worked and optionally any overtime hours and pay rate, your own tax rate, and other deductions. Find out where your money comes from and where it's going.

[ Get Source Code ]


Title: Popup Date Picker
Contributor: Kedar R. Bhave (softricks@hotmail.com)
Contributor URL: http://www.softricks.com
Details: 17.17 KB * Uploaded September 6 2000
Description: Getting date input for your web site visitors and customers was never this easy! A popup window appears allowing the user to select a date simply by a clicking it. The user can navigate to previous and future dates, and the selected date is displayed in your form. Great! Uses a .js file so it's easy to re-use this code on your pages.

[ Get Source Code ]


Title: Popup Window Maker
Idea By:Nic Wolfe (Nic@TimelapseProductions.com)
Web URL: http://fineline.xs.mw
Details: Uploaded June 14 2000
Description: Don't worry any more about editing the code by hand, use our code generator! Fill out the specifications of the popup window you would like to use, including the URL and the various options such as menubars, toolbars, scrollbars, etc, and click the generate button. Just add this generated code to your site, or even have us mail it to you! Neat!

[ Get Source Code ]


Title: Power Equivalents
Details: 5.28 KB * Uploaded July 3 1997
Description: JavaScript can help you find power equivalents.

[ Get Source Code ]


Title: Pregnancy Calculator
Contributor: Ronnie T. Moore, Editor
Details: 5.17 KB * Uploaded March 13 2000
Description: Enter the mother's pregnancy information into this calculator and JavaScript will provide an estimated conception date, birth due date, and an estimated current fetal age. Great for all those mothers-to-be!

[ Get Source Code ]


Title: Preload Images
Details: 0.54 KB * Uploaded January 29 1999
Description: Ever wanted to get rid of the delay that happens when users put their cursor on a image while the 'onmouseover' image loads? Use JavaScript to preload your 'onmouseover' images and the delay is gone! Useful!

[ Get Source Code ]


Title: Preload Images & Rollover Generator
Details: Uploaded January 21 1998
Description: Script generator for our ever-popular image change rollover JavaScript. Just fill out the information, and it will generate your code for you - no more modifications are necessary! And, we can even mail the generated code to you! Wow... :-)

[ Get Source Code ]


Title: Pressure Equivalents
Details: 6.31 KB * Uploaded July 3 1997
Description: JavaScript can help you find pressure equivalents.

[ Get Source Code ]


Title: Prime Number Calculator
Details: 0.88 KB * Uploaded December 4 1998
Description: Enter a number and JavaScript can instantly tell you if it is a prime number or not. I wish I had this little gem to help me in my math classes!

[ Get Source Code ]


Title: Print Page
Details: 0.58 KB * Uploaded July 13 1999
Description: Although JavaScript can't print a web page automatically, it can bring up the print prompt box just like the print button in the web browser does. The user can click "OK" to print the page. The script can be placed as a reminder to your visitors to print out important pages which contain their passwords, account info, order number, etc. The script can also be set to automatically remind them when the page loads.

[ Get Source Code ]


Title: Print Page (Automatic)
Details: 0.79 KB * Uploaded July 13 1999
Description: This automatic version of Print Page reminds them to print the page as soon as the page finishes loading. Useful when you want the visitor to print out their order page, or their account info page, or any other page with sensitive information.

[ Get Source Code ]


Title: Proper Date
Details: 1.03 KB * Uploaded February 11 1999
Description: This little script will help you return the "proper" day ending - August 1st, August 2nd, August 3rd, etc. Neat!

[ Get Source Code ]


Title: Protect Images
Details: 0.81 KB * Uploaded May 21 1999
Description: (4.0+ browsers) Keep visitors from stealing your site images by right-clicking and then selecting "Save Image As..." This script will disable the right click on all the images on your site. Not foolproof, but helpful!

[ Get Source Code ]


Title: Pulldown Menu
Contributor: Alex Tu (boudha1@hotmail.com)
Contributor URL: http://www.geocities.com/alex_2106
Details: 1.20 KB * Uploaded April 16 1998
Description: You can make it easier on our visitors to find their way around your site. I highly suggest using the extremely popular and extremely useful menu list. It seems every good site has one.... So, put one on your site!

[ Get Source Code ]


Title: Pulldown Menu (Automatic in Frames)
Details: 1.79 KB * Uploaded July 17 1998
Description: Here's the Automatic Pulldown menu, but in Frames! Have the link open in a different frame of your site! Neat!

[ Get Source Code ]


Title: Pulldown Menu (Automatic)
Details: 2.96 KB * Uploaded August 13 1997
Description: This Javascript will display an ordinary-looking menu . Once a link is selected, the visitor is automatically taken to the website without hitting 'Go!' or anything.

[ Get Source Code ]


Title: Pulldown Menu (Description)
Details: 4.54 KB * Uploaded August 13 1997
Description: If you have plenty of space on you webpage or just would like to use a more comprehensive menu list, then this script might suit you nicely. This script works very well and is also very visually appealing.

[ Get Source Code ]


Title: Pulldown Menu (Double)
Contributor: Webreference.com
Contributor URL: http://www.webreference.com
Details: 4.56 KB * Uploaded January 29 1999
Description: If you have an 'archive' site, like JavaScript Source Code 2002, it might make more sense to provide archive-like navigation. The Visitors can choose your topic (or category, as is the case in TJS) from the first menu list and then pick a link from the second menu list. This is a very wonderful script.

[ Get Source Code ]


Title: Pulldown Menu (in Frames)
Details: 1.44 KB * Uploaded January 2 1997
Description: If you would like to use a pulldown menu, but would like to do so in frames, this is the script for you. One frame will contain the pulldown menu and the selections will be opened in the other frames!

[ Get Source Code ]


Title: Pulldown Menu (Popup)
Details: 1.32 KB * Uploaded June 29 1999
Description: After the user selects an option in the pulldown menu, the new page opens in a new window! This is useful when linking to sites not within your site when you do not want the user to leave your site. Your site will remain open in the other window so the visitor can come back to it when the are finished with the popup page. You can even control the size of the popup window, whether it has scrollbars, menubars, toolbars, etc.

[ Get Source Code ]


Title: Pythagorean Theorem
Details: 0.99 KB * Uploaded May 14 1999
Description: One of geometry's most useful formulas, the Pythagorean Theorem, can be applied to the numbers you enter in JavaScript! Just enter 'A' and 'B' and the script solves for 'C.' Neat!

[ Get Source Code ]